package com.yingdong.centerserver.inner.handler;

import com.yingdong.centerserver.inner.message.GameMessage;
import com.yingdong.centerserver.opcode.Dispatcher;

public class UserLoginHandler extends CenterServerHandler {

	@Override
	public void handle(int sessionId, GameMessage msg) {
		int userId = msg.readInt();
		Dispatcher.centerServerSessionMap.put(sessionId, msg.getChannel());
		Dispatcher.userIdMap.put(userId, sessionId);
	}

}
